<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div>
			<div>
				<span></span>
			</div>
		</div>

		<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
		<script>
			//返回元素直接的父元素
			console.log($("span").parent());
			//返回被选中元素的祖先元素
			console.log($("span").parents());
			//
		</script>
	</body>
</html>